{% extends "base_generic.html" %}
{% load static %}
{% block extra_css %}
<link rel="stylesheet" href="{% static 'css/user_management.css' %}">
{% endblock %}

{% block content %}
<div class="container mt-4">
    <div class="card">
        <div class="card-header bg-danger text-white">
            <h1 class="mb-0"><i class="fas fa-book"></i> 删除书籍副本: {{ bookinstance }}</h1>
        </div>
        <div class="card-body">
            <div class="alert alert-danger">
                <p>您确定要删除这本书的副本吗？</p>
            </div>
            <form action="" method="POST">
                {% csrf_token %}
                <div class="d-grid gap-2 d-md-flex justify-content-md-end">
                    <a href="{% url 'book-detail' bookinstance.book.pk %}" class="btn btn-secondary me-md-2">取消</a>
                    <button type="submit" class="btn btn-danger">确认删除</button>
                </div>
            </form>
        </div>
    </div>
</div>
{% endblock %}
